﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelfenHelfen.Interfaces;
using HelfenHelfen.DataAccess.Factories;

namespace HelfenHelfen.Logic
{
    public class UserDetailLogic : IUserDetailLogic
    {
        public DataAccess.Entities.UserDetail GetUserDetailByGuid(Guid guid)
        {
            var da = DataAccessFactory.CreateUserDetailDataAccess();
            return da.Get(guid);
        }


        public IEnumerable<DataAccess.Entities.UserDetail> SearchUser(string searchText, int count)
        {
            var da = DataAccessFactory.CreateUserDetailDataAccess();
            return da.SearchByName(searchText, count);
        }
    }
}
